Skip to content

Conversation

@DaughterOfMars
Copy link
Contributor

Description

Adds docs to the iota-transaction-builder crate and the transfer-objects and gas builder functions.

Closes #290
Closes #295
Closes #299

@thibault-martinez
Copy link
Member

I guess my suggestion was badly formatted

Comment on lines 99 to 101
//! Each command method adds one or more commands to the final transaction. Some
//! commands have optional follow-up methods. All command results can be named
//! via [name](TransactionBuilder::name);
Copy link
Contributor

@Alex6323 Alex6323 Oct 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would mention why naming a command is necessary because it's not apparent why that's a good feature to have?

//! - [transfer_objects](TransactionBuilder::transfer_objects): Send objects to
//! a recipient address.
//! - [publish](TransactionBuilder::publish): Publish a move package.
//! - `package_id`: Name the package ID returned by the publish call.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering what's that for, because I didn't need it in the example. 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might not be needed

Comment on lines +147 to +153
//! - [apply_argument](TransactionBuilder::apply_argument)
//! - [apply_arguments](TransactionBuilder::apply_arguments)
//! - [input](TransactionBuilder::input)
//! - [pure_bytes](TransactionBuilder::pure_bytes)
//! - [pure](TransactionBuilder::pure)
//! - [command](TransactionBuilder::command)
//! - [named_command](TransactionBuilder::named_command)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but shouldn't they be documented here as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to have the detailed docs on the method itself and just link to them here

@thibault-martinez
Copy link
Member

Failing CI

@thibault-martinez
Copy link
Member

Failing CI (in case you haven't seen)

@thibault-martinez
Copy link
Member

Failing CI

@DaughterOfMars DaughterOfMars merged commit 3384e33 into sdk-bindings Oct 21, 2025
14 checks passed
@DaughterOfMars DaughterOfMars deleted the chore/txn-builder-docs branch October 21, 2025 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tx builder: general docs Tx builder: document TransactionBuilder::transfer_objects() Tx builder: document TransactionBuilder::gas()

5 participants